import re
int_line='Route Port,The Maximum Transmit Unit is 1500'
match=re.search('The Maximum Transmit',int_line)

print(match)

print(match.group())

match1=re.search('The Maximum Transmitdd',int_line)
print(match1)
#print(match1.group())


match2=re.search('The Maximum Transmit Unit is \d+',int_line)
print(match2.group())


log2 = 'VlanId = 54, MacAddress = 0000-5e00-0136, Original-Port = GE0/0/1, Flapping port = GE0/0/2.'

#re_template=r'VlanId=(\d+),MacAddress=(\S+),Original-Port=(\S+),Flapping port=(\S+)\.'
re_template='VlanId = (\d+)'
match3=re.search(re_template,log2)
print(match3)
print(match3.group())